//
//  CHViewAdditions.m
//  Chocolat
//
//  Created by Pieter Omvlee on 8/14/08.
//  Copyright 2008 Insearchofaname. All rights reserved.
//

#import "CHViewAdditions.h"


@implementation NSView (CHViewAdditions)

- (void)setFrameHeight:(float)height
{
  NSSize s = [self frame].size;
  s.height = height;
  [self setFrameSize:s];
}

- (void)setFrameWidth:(float)width
{
  NSSize s = [self frame].size;
  s.width = width;
  [self setFrameSize:s];
}

- (void)setFrameOriginX:(float)x
{
  NSPoint p = [self frame].origin;
  p.x = x;
  [self setFrameOrigin:p];
}

- (void)setFrameOriginY:(float)y
{
  NSPoint p = [self frame].origin;
  p.y = y;
  [self setFrameOrigin:p];  
}

@end
